package com.zhl.Demo;

public class Test1 {
    public static void main(String[] args) {
        //求最值
        int[] sales = {16,20,25,3,53,63,61,21,78,89,35,19};
        int max = sales[0];
        for(int i = 0; i < sales.length; i++)
        {
            if(sales[i] > max){
                max = sales[i];
            }
        }
        System.out.println("最大值为："+ max);

    }
}
